﻿<div>
    <Switch Checked="switchValue" Disabled="isDisabled"/>
    <br />
    <br />
    <Button Type="@ButtonType.Primary" @onclick="(_)=>isDisabled = !isDisabled">Toggle disabled</Button>
</div>


@code{
    bool switchValue = false;

    bool isDisabled = true;
}


